home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13951 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: sanjose.vlsi.com!msn!markj
  2. From: markj@msn.ustc.vlsi.com (Mark Johnson)
  3. Newsgroups: gnu.gcc,gnu.g++,comp.sys.hp.hpux,gnu.gcc.help,comp.lang.c
  4. Subject: Why can't gcc find some object files in archive libraries?
  5. Date: 10 Apr 1996 15:24:10 -0500
  6. Organization: VLSI Technology, Inc. (San Jose)
  7. Message-ID: <markj.829166983@msn>
  8. NNTP-Posting-Host: msn.ustc.vlsi.com
  9. Keywords: gcc,g++,hpux
  10.  
  11. I've been trying to figure out why while running g++ on hpux 9.05, for
  12. certain sources, the linker misses the object file.  I've noticed this
  13. with several *.o files in archived libraries.  But I've done a number
  14. of test cases and I'm sure that the linker is just overlooking the
  15. object file for some unknown reason.
  16.  
  17. One of the object files is xmalloc.o in the libiberty.a library.  If I
  18. extract xmalloc.o from the library and put it in the object list
  19. everything compiles fine.  But if I don't put the actual *.o file on
  20. the object list the linker won't find it.  If I explicitely put the
  21. library on my path it still won't find it.  If I take the *.o file and
  22. make a new archive library with some bogus name it still won't find
  23. it.  I've put another *.o file in the library just to make sure that
  24. the linker is reading the library.  It is.  
  25.  
  26. Anyway, I'm at a lose for an explaination.  Anyone got an idea
  27. what's wrong?  
  28.  
  29. Mark
  30. mark.johnson@vlsi.com
  31.